# WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

#下载rules_foreign_cc依赖
#详情可见：https://github.com/bazel-contrib/rules_foreign_cc
#文档：https://bazel-contrib.github.io/rules_foreign_cc/

# http_archive(
#     name = "rules_foreign_cc",
#     sha256 = "e0f0ebb1a2223c99a904a565e62aa285bf1d1a8aeda22d10ea2127591624866c",
#     strip_prefix = "rules_foreign_cc-0.14.0",
#     url = "https://github.com/bazel-contrib/rules_foreign_cc/releases/download/0.14.0/rules_foreign_cc-0.14.0.tar.gz",
# )
# load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies")
# rules_foreign_cc_dependencies(
#     register_default_tools = True,  
#     register_built_tools = True
# )
# load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
# bazel_skylib_workspace()
# load("@bazel_features//:deps.bzl", "bazel_features_deps")
# bazel_features_deps()
# load("@rules_python//python:repositories.bzl", "py_repositories")
# py_repositories()


_ALL_CONTENT = """\
filegroup(
    name = "all_srcs",
    srcs = glob(["**"]),
    visibility = ["//visibility:public"],
)
"""

# 引入第三方库
#详情见：https://bazel.build/rules/lib/repo/http?hl=zh-cn#http_archive
# http_archive(
#     name = "lib_name",
#     build_file_content = _ALL_CONTENT,
#     urls = [""],
#     strip_prefix = "lib_name",
# )